package com.infosystem.demo.repositories;
import com.infosystem.demo.entities.Employee;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

public interface EmployeeRepository extends JpaRepository<Employee, String>{
    List<Employee> findByName(String name);
    List<Employee> findByDepartment(String department);
    List<Employee> findByGovId(String govId);
    List<Employee> findByEnrollDate(Date enrollDate);
}
